from django.db import models

# Create your models here.
class UserModel(models.Model):
    is_del = models.IntegerField(default=0)
    userimg = models.CharField(max_length=200, blank=True, null=True)
    username = models.CharField(max_length=50, unique=True)
    phone = models.CharField(max_length=11, unique=True)
    password = models.CharField(max_length=50)
    grade = models.CharField(max_length=10, blank=True, null=True)
    info = models.CharField(max_length=20, blank=True, null=True)
    IPaddress = models.CharField(max_length=20, blank=True, null=True)
    sex = models.CharField(max_length=5, blank=True, null=True)
    birthday = models.DateField(blank=True, null=True)
    class Meta:
        db_table = 'user'